import {createSlice} from "@reduxjs/toolkit";

const userSlice = createSlice({
    name: 'user', // 初始化数据
    initialState: {
        userInfo: []
    },
    reducers: {}
})

// 解构赋值

// 异步修改状态


const reducer = userSlice.reducer
export default reducer